package com.app.lxx.pregnancyberth.ui.entity;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Lxx on PregnancyBerth
 * 2019/9/5 17:11 星期四
 */
public class SmartHomeEntity implements Serializable {

    /**
     * code : 1
     * msg : 成功
     * time : 1567734955
     * data : {"id":20,"name":"2","house_id":11,"hujiao_type":"1","item_json":null,"house_type":8,"intelligent":"{\"1\": {\"34\": {\"address\": \"\", \"new_name\": \" 智能电视\", \"old_name\": \" 智能电视\"}}, \"2\": {\"35\": {\"address\": \"\", \"new_name\": \" 智能空调\", \"old_name\": \" 智能空调\"}}, \"3\": {\"36\": {\"address\": \"\", \"new_name\": \" 智能窗帘\", \"old_name\": \" 智能窗帘\"}}, \"4\": {\"37\": {\"address\": \"\", \"new_name\": \" 新风控制\", \"old_name\": \" 新风控制\"}}, \"5\": {\"55\": {\"address\": \"\", \"new_name\": \" 灯光控制(普通)\", \"old_name\": \" 灯光控制(普通)\"}}, \"6\": {\"56\": {\"address\": \"\", \"new_name\": \" 灯光控制(色温)\", \"old_name\": \" 灯光控制(色温)\"}}, \"7\": {\"57\": {\"address\": \"\", \"new_name\": \" 灯光控制(色彩)\", \"old_name\": \" 灯光控制(色彩)\"}}, \"8\": {\"55\": {\"address\": \"\", \"new_name\": \" 灯光控制(普通)\", \"old_name\": \" 灯光控制(普通)\"}}, \"9\": {\"56\": {\"address\": \"\", \"new_name\": \" 灯光控制(色温)\", \"old_name\": \" 灯光控制(色温)\"}}, \"10\": {\"57\": {\"address\": \"\", \"new_name\": \" 灯光控制(色彩)\", \"old_name\": \" 灯光控制(色彩)\"}}}","intelligent_ids":"34,35,36,37,55,56,57,55,56,57","device_id":"1009","intelligent_data":[{"address":"","new_name":" 智能电视","old_name":" 智能电视","info":{"id":34,"name":"智能电视","yx_switch":2,"extend":[{"action":"1","command":"2"},{"action":"3","command":"4"},{"action":"5","command":"6"},{"action":"7","command":"8"},{"action":"9","command":"10"},{"action":"11","command":"12"}],"mode":null}},{"address":"","new_name":" 智能空调","old_name":" 智能空调","info":{"id":35,"name":"智能空调","yx_switch":1,"extend":[{"action":"11","command":"12"},{"action":"13","command":"14"},{"action":"15","command":"16"},{"action":"17","command":"18"},{"action":"19","command":"20"},{"action":"21","command":"22"}],"mode":null}},{"address":"","new_name":" 智能窗帘","old_name":" 智能窗帘","info":{"id":36,"name":"智能窗帘","yx_switch":2,"extend":[{"action":"31","command":"32"},{"action":"33","command":"34"},{"action":"35","command":"36"}],"mode":null}},{"address":"","new_name":" 新风控制","old_name":" 新风控制","info":{"id":37,"name":"新风控制","yx_switch":1,"extend":[{"action":"41","command":"42"},{"action":"43","command":"44"},{"action":"45","command":"47"}],"mode":null}},{"address":"","new_name":" 灯光控制(普通)","old_name":" 灯光控制(普通)","info":{"id":55,"name":"灯光控制","yx_switch":1,"extend":[{"action":"12","command":"222222222"},{"action":"2","command":"1212121"}],"mode":"普通"}},{"address":"","new_name":" 灯光控制(色温)","old_name":" 灯光控制(色温)","info":{"id":56,"name":"灯光控制","yx_switch":2,"extend":[{"action":"11111111111","command":"22222222222222"}],"mode":"色温"}},{"address":"","new_name":" 灯光控制(色彩)","old_name":" 灯光控制(色彩)","info":{"id":57,"name":"灯光控制","yx_switch":2,"extend":[{"action":"888888888888","command":"99999999999999"}],"mode":"色彩"}},{"address":"","new_name":" 灯光控制(普通)","old_name":" 灯光控制(普通)","info":{"id":55,"name":"灯光控制","yx_switch":1,"extend":[{"action":"12","command":"222222222"},{"action":"2","command":"1212121"}],"mode":"普通"}},{"address":"","new_name":" 灯光控制(色温)","old_name":" 灯光控制(色温)","info":{"id":56,"name":"灯光控制","yx_switch":2,"extend":[{"action":"11111111111","command":"22222222222222"}],"mode":"色温"}},{"address":"","new_name":" 灯光控制(色彩)","old_name":" 灯光控制(色彩)","info":{"id":57,"name":"灯光控制","yx_switch":2,"extend":[{"action":"888888888888","command":"99999999999999"}],"mode":"色彩"}}],"hujiao_type_text":"Hujiao_type 1"}
     */

    private int code;
    private String msg;
    private String time;
    private DataBean data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean  implements Serializable  {
        /**
         * id : 20
         * name : 2
         * house_id : 11
         * hujiao_type : 1
         * item_json : null
         * house_type : 8
         * intelligent : {"1": {"34": {"address": "", "new_name": " 智能电视", "old_name": " 智能电视"}}, "2": {"35": {"address": "", "new_name": " 智能空调", "old_name": " 智能空调"}}, "3": {"36": {"address": "", "new_name": " 智能窗帘", "old_name": " 智能窗帘"}}, "4": {"37": {"address": "", "new_name": " 新风控制", "old_name": " 新风控制"}}, "5": {"55": {"address": "", "new_name": " 灯光控制(普通)", "old_name": " 灯光控制(普通)"}}, "6": {"56": {"address": "", "new_name": " 灯光控制(色温)", "old_name": " 灯光控制(色温)"}}, "7": {"57": {"address": "", "new_name": " 灯光控制(色彩)", "old_name": " 灯光控制(色彩)"}}, "8": {"55": {"address": "", "new_name": " 灯光控制(普通)", "old_name": " 灯光控制(普通)"}}, "9": {"56": {"address": "", "new_name": " 灯光控制(色温)", "old_name": " 灯光控制(色温)"}}, "10": {"57": {"address": "", "new_name": " 灯光控制(色彩)", "old_name": " 灯光控制(色彩)"}}}
         * intelligent_ids : 34,35,36,37,55,56,57,55,56,57
         * device_id : 1009
         * intelligent_data : [{"address":"","new_name":" 智能电视","old_name":" 智能电视","info":{"id":34,"name":"智能电视","yx_switch":2,"extend":[{"action":"1","command":"2"},{"action":"3","command":"4"},{"action":"5","command":"6"},{"action":"7","command":"8"},{"action":"9","command":"10"},{"action":"11","command":"12"}],"mode":null}},{"address":"","new_name":" 智能空调","old_name":" 智能空调","info":{"id":35,"name":"智能空调","yx_switch":1,"extend":[{"action":"11","command":"12"},{"action":"13","command":"14"},{"action":"15","command":"16"},{"action":"17","command":"18"},{"action":"19","command":"20"},{"action":"21","command":"22"}],"mode":null}},{"address":"","new_name":" 智能窗帘","old_name":" 智能窗帘","info":{"id":36,"name":"智能窗帘","yx_switch":2,"extend":[{"action":"31","command":"32"},{"action":"33","command":"34"},{"action":"35","command":"36"}],"mode":null}},{"address":"","new_name":" 新风控制","old_name":" 新风控制","info":{"id":37,"name":"新风控制","yx_switch":1,"extend":[{"action":"41","command":"42"},{"action":"43","command":"44"},{"action":"45","command":"47"}],"mode":null}},{"address":"","new_name":" 灯光控制(普通)","old_name":" 灯光控制(普通)","info":{"id":55,"name":"灯光控制","yx_switch":1,"extend":[{"action":"12","command":"222222222"},{"action":"2","command":"1212121"}],"mode":"普通"}},{"address":"","new_name":" 灯光控制(色温)","old_name":" 灯光控制(色温)","info":{"id":56,"name":"灯光控制","yx_switch":2,"extend":[{"action":"11111111111","command":"22222222222222"}],"mode":"色温"}},{"address":"","new_name":" 灯光控制(色彩)","old_name":" 灯光控制(色彩)","info":{"id":57,"name":"灯光控制","yx_switch":2,"extend":[{"action":"888888888888","command":"99999999999999"}],"mode":"色彩"}},{"address":"","new_name":" 灯光控制(普通)","old_name":" 灯光控制(普通)","info":{"id":55,"name":"灯光控制","yx_switch":1,"extend":[{"action":"12","command":"222222222"},{"action":"2","command":"1212121"}],"mode":"普通"}},{"address":"","new_name":" 灯光控制(色温)","old_name":" 灯光控制(色温)","info":{"id":56,"name":"灯光控制","yx_switch":2,"extend":[{"action":"11111111111","command":"22222222222222"}],"mode":"色温"}},{"address":"","new_name":" 灯光控制(色彩)","old_name":" 灯光控制(色彩)","info":{"id":57,"name":"灯光控制","yx_switch":2,"extend":[{"action":"888888888888","command":"99999999999999"}],"mode":"色彩"}}]
         * hujiao_type_text : Hujiao_type 1
         */

        private int id;
        private String name;
        private int house_id;
        private String hujiao_type;
        private String item_json;
        private int house_type;
        private String intelligent;
        private String intelligent_ids;
        private String device_id;
        private String hujiao_type_text;
        private List<IntelligentDataBean> intelligent_data;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getHouse_id() {
            return house_id;
        }

        public void setHouse_id(int house_id) {
            this.house_id = house_id;
        }

        public String getHujiao_type() {
            return hujiao_type;
        }

        public void setHujiao_type(String hujiao_type) {
            this.hujiao_type = hujiao_type;
        }

        public String getItem_json() {
            return item_json;
        }

        public void setItem_json(String item_json) {
            this.item_json = item_json;
        }

        public int getHouse_type() {
            return house_type;
        }

        public void setHouse_type(int house_type) {
            this.house_type = house_type;
        }

        public String getIntelligent() {
            return intelligent;
        }

        public void setIntelligent(String intelligent) {
            this.intelligent = intelligent;
        }

        public String getIntelligent_ids() {
            return intelligent_ids;
        }

        public void setIntelligent_ids(String intelligent_ids) {
            this.intelligent_ids = intelligent_ids;
        }

        public String getDevice_id() {
            return device_id;
        }

        public void setDevice_id(String device_id) {
            this.device_id = device_id;
        }

        public String getHujiao_type_text() {
            return hujiao_type_text;
        }

        public void setHujiao_type_text(String hujiao_type_text) {
            this.hujiao_type_text = hujiao_type_text;
        }

        public List<IntelligentDataBean> getIntelligent_data() {
            return intelligent_data;
        }

        public void setIntelligent_data(List<IntelligentDataBean> intelligent_data) {
            this.intelligent_data = intelligent_data;
        }

        public static class IntelligentDataBean   implements Serializable {
            /**
             * address :
             * new_name :  智能电视
             * old_name :  智能电视
             * info : {"id":34,"name":"智能电视","yx_switch":2,"extend":[{"action":"1","command":"2"},{"action":"3","command":"4"},{"action":"5","command":"6"},{"action":"7","command":"8"},{"action":"9","command":"10"},{"action":"11","command":"12"}],"mode":null}
             */

            private String address;
            private String new_name;
            private String old_name;
            private InfoBean info;

            public String getAddress() {
                return address;
            }

            public void setAddress(String address) {
                this.address = address;
            }

            public String getNew_name() {
                return new_name;
            }

            public void setNew_name(String new_name) {
                this.new_name = new_name;
            }

            public String getOld_name() {
                return old_name;
            }

            public void setOld_name(String old_name) {
                this.old_name = old_name;
            }

            public InfoBean getInfo() {
                return info;
            }

            public void setInfo(InfoBean info) {
                this.info = info;
            }

            public static class InfoBean  implements Serializable  {
                /**
                 * id : 34
                 * name : 智能电视
                 * yx_switch : 2
                 * extend : [{"action":"1","command":"2"},{"action":"3","command":"4"},{"action":"5","command":"6"},{"action":"7","command":"8"},{"action":"9","command":"10"},{"action":"11","command":"12"}]
                 * mode : null
                 */

                private int id;
                private String name;
                private int yx_switch;
                private String mode;
                private List<ExtendBean> extend;

                public int getId() {
                    return id;
                }

                public void setId(int id) {
                    this.id = id;
                }

                public String getName() {
                    return name;
                }

                public void setName(String name) {
                    this.name = name;
                }

                public int getYx_switch() {
                    return yx_switch;
                }

                public void setYx_switch(int yx_switch) {
                    this.yx_switch = yx_switch;
                }

                public String getMode() {
                    return mode;
                }

                public void setMode(String mode) {
                    this.mode = mode;
                }

                public List<ExtendBean> getExtend() {
                    return extend;
                }

                public void setExtend(List<ExtendBean> extend) {
                    this.extend = extend;
                }

                public static class ExtendBean  implements Serializable  {
                    /**
                     * action : 1
                     * command : 2
                     */

                    private String action;
                    private String command;

                    public String getAction() {
                        return action;
                    }

                    public void setAction(String action) {
                        this.action = action;
                    }

                    public String getCommand() {
                        return command;
                    }

                    public void setCommand(String command) {
                        this.command = command;
                    }
                }
            }
        }
    }
}
